package com.wxb.service.impl;

import com.wxb.domain.MallUserCouponEntity;
import com.wxb.mapper.MallUserCouponMapper;
import com.wxb.service.IMallUserCouponService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Date 2025-05-30 14:33
 * @Version 1.0
 * @Description
 * @ClassName MallUserCouponServiceImpl
 **/
@Service
public class MallUserCouponServiceImpl implements IMallUserCouponService {
    @Autowired
    private MallUserCouponMapper userCouponDao;


    public MallUserCouponEntity queryObject(Integer id) {
        return userCouponDao.queryObject(id);
    }

    public MallUserCouponEntity queryByCouponNumber(String couponNumber) {
        return userCouponDao.queryByCouponNumber(couponNumber);
    }

    public List<MallUserCouponEntity> queryList(Map<String, Object> map) {
        return userCouponDao.queryList(map);
    }


    public int queryTotal(Map<String, Object> map) {
        return userCouponDao.queryTotal(map);
    }


    public void save(MallUserCouponEntity goods) {
        userCouponDao.save(goods);
    }


    public void update(MallUserCouponEntity goods) {
        userCouponDao.update(goods);
    }


    public void delete(Integer id) {
        userCouponDao.delete(id);
    }


    public void deleteBatch(Integer[] ids) {
        userCouponDao.deleteBatch(ids);
    }
}
